<template>
  <div>
    <!-- 中间内容 -->
    <div id="content">
      <!-- 轮播图片 -->
      <div id="swiper" class="bg-white text-start">
        <div id="myCarousel" class="carousel slide" data-bs-ride="carousel">
          <!-- 面板指示器 -->
          <div class="carousel-indicators">
            <button type="button" data-bs-target="#myCarousel" data-bs-slide-to="0" class="active"></button>
          </div>

          <!-- Wrapper for carousel items -->
          <div class="carousel-inner">
            <div class="carousel-item active">
              <img src="@/assets/images/swiper.jpg" class="d-block w-100 img-fluid br-5" alt="Slide 1" />
            </div>
          </div>

          <!-- 左右切换按钮 -->
          <a class="carousel-control-prev" href="#myCarousel" data-bs-slide="prev">
            <span class="carousel-control-prev-icon"></span>
          </a>
          <a class="carousel-control-next" href="#myCarousel" data-bs-slide="next">
            <span class="carousel-control-next-icon"></span>
          </a>
        </div>
      </div>
      <!-- 核心价值 -->
      <div class="core-value">
        <p class=""><b>核心价值</b></p>
        <p class="">Core Value</p>
        <div class="core-value-img">
          <img src="@/assets/images/coreValueImg.png" alt="" />
        </div>
      </div>
      <!-- 关于我们 -->
      <div id="aboutUs-box">
        <div class="aboutUs row">
          <div class="aboutUs-textInfo col-lg-6">
            <div class="text">
              <p class="title-zh">关于我们</p>
              <p class="title-en">About us</p>
              <br />
              <p style="font-size: 14px;">
                <span>江苏众延汽车服务有限公司是经国家相关部委批复核准专注于汽车质量担保与延长保修服务的专业运营商，是国内专业的汽车质量保修及后市场综合服务提供商，旗下涵盖众延保修、众延优选（GAP）两大核心业务板块。</span>
                <br />
                <br />
                <span>公司专注开拓中国市场，提供平行进口汽车质量三包服务、二手车质保服务、新车及在用车延保服务、汽车质量保修管理咨询（TPA）服务等，是中国人保、平安、众诚保险公司的战略合作伙伴</span>
              </p>
            </div>
            <div class="more-btn">MORE</div>
          </div>
          <div class="col-lg-6 text-center">
            <img src="@/assets/images/aboutUs.jpg" alt="" />
          </div>
        </div>
      </div>
      <!-- 新闻资讯 -->
      <div id="news">
        <div class="news-title">
          <p>新闻资讯</p>
          <p>News</p>
        </div>
        <div class="news-content">
          <div class="left col-xs-12 col-sm-4 col-md-4 col-lg-4">
            <img src="@/assets/images/car.png" alt="" />
          </div>
          <div class="right col-xs-12 col-sm-8 col-md-8 col-lg-8">
            <ul>
              <router-link :to="{ path: './news/industrydetails', query: { index: 0 } }">
                <li>
                  <p>
                    <span class="staFun">顶</span>&nbsp;<span class="staFun">荐</span>
                    安心汽车延保服务
                  </p>
                  <span class="time">2021-02-05</span>

                </li>
              </router-link>
              <router-link :to="{ path: './news/industrydetails', query: { index: 1 } }">
                <li>
                  <p>延保期内客户车辆出现故障怎么办？</p>
                  <span class="time">2021-02-05</span>
                </li>
              </router-link>
              <router-link :to="{ path: './news/dynamicsdetails', query: { index: 2 } }">
                <li>
                  <p>汽车延保该不该买？</p>
                  <span class="time">2021-02-12</span>
                </li>
              </router-link>
            </ul>
          </div>
        </div>
      </div>
    </div>
    <!-- 底部 -->
    <footer id="footer">
      <div class="icp">
        <span>Copyright @ VillaGrandis All Rights
          Reserved&nbsp;&nbsp;苏ICP备2024146572号-2&nbsp;&nbsp;&nbsp;网站地图</span>
      </div>
    </footer>
  </div>
</template>

<script setup lang="ts">
import { ref, reactive } from "vue";
import Navigation from "../components/menu/Navigation.vue";
const Data = reactive({
  drawer: false,
});
</script>

<style scoped lang="scss">
p,
ul,
li {
  list-style: none;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

#content {
  box-sizing: border-box;

  #swiper {
    width: 100%;
    box-sizing: border-box;

    img {
      width: 100%;
      height: auto;
    }
  }

  .core-value {
    width: auto;
    max-width: 1200px;
    margin: 30px auto 0 auto;

    p {
      text-align: center;
      color: #333;
      margin-bottom: 0;
    }

    p:nth-of-type(1) {
      font-size: 24px;
    }

    // p:nth-of-type(1) {
    // }
    img {
      width: 100%;
      height: auto;
    }
  }

  #aboutUs-box {
    padding: 60px 0;
    width: 100%;
    background-color: rgb(14, 34, 95);

    .aboutUs {
      width: auto;
      max-width: 1200px;
      margin: 0 auto;

      .aboutUs-textInfo {
        color: #fff;

        .text {
          .title-zh {
            font-size: 20px;
            font-weight: bolder;
          }

          .title-en {
            font-size: 14px;
          }
        }

        .more-btn {
          width: 100px;
          height: 40px;
          margin-top: 20px;
          text-align: center;
          line-height: 40px;
          color: #fff;
          border: 1px solid #fff;
          cursor: pointer;
          font-size: 12px;

          &:hover {
            border-color: rgb(224, 173, 81);
            color: rgb(224, 173, 81);
          }
        }
      }

      img {
        max-width: 100%;
        width: auto;
        height: auto;
      }
    }
  }

  #news {
    width: auto;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;

    .news-title {
      margin-top: 5%;
      padding: 10px 0;

      p:nth-of-type(1) {
        font-size: 26px;
        font-weight: bolder;
        color: #333;
      }

      p:nth-of-type(2) {
        font-size: 18px;
      }
    }

    .news-content {
      box-sizing: border-box;
      display: flex;

      .left {
        img {
          max-width: 100%;
          height: auto;
        }
      }

      .right {
        li {
          line-height: 50px;
          border-bottom: 1px solid #eeeeee;
          font-size: 14px;
          color: #666;
          // padding: 0 10px;
          display: flex;
          justify-content: space-between;
          align-items: center;

          &:hover {
            background-color: rgb(242, 242, 242);
            color: rgb(254, 0, 0);
          }

          p {
            .staFun {
              border: 1px solid #e50b1c;
              font-size: 12px;
              padding: 0px 2px;
              color: #e50b1c;
              font-weight: bold;
              border-radius: 2px;
            }
          }

          .time {
            font-size: 12px;
          }
        }
      }
    }
  }
}

#footer {
  width: 100%;
  height: auto;
  background-color: rgb(14, 34, 95);
  box-sizing: border-box;

  .icp {
    width: auto;
    max-width: 1200px;
    margin: 0 auto;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
  }
}
</style>
